<!doctype html>
<html lang="en">
<head>
    <title>Code coverage report for src/views/main.vue</title>
    <meta charset="utf-8" />
    <link rel="stylesheet" href="..\..\prettify.css" />
    <link rel="stylesheet" href="..\..\base.css" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <style type='text/css'>
        .coverage-summary .sorter {
            background-image: url(..\..\sort-arrow-sprite.png);
        }
    </style>
</head>
<body>
<div class='wrapper'>
  <div class='pad1'>
    <h1>
      <a href="..\..\index.html">All files</a> / <a href="index.html">src/views</a> main.vue
    </h1>
    <div class='clearfix'>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Statements</span>
        <span class='fraction'>0/40</span>
      </div>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Branches</span>
        <span class='fraction'>0/16</span>
      </div>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Functions</span>
        <span class='fraction'>0/17</span>
      </div>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Lines</span>
        <span class='fraction'>0/35</span>
      </div>
    </div>
  </div>
  <div class='status-line low'></div>
<pre><table class="coverage">
<tr><td class="line-count quiet">1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80</td><td class="line-coverage quiet"><span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">&lt;<span class="cstat-no" title="statement not covered" >t<span class="fstat-no" title="function not covered" >em</span>plate&gt;</span>
  &lt;div
    class="site-wrapper"
<span class="cstat-no" title="statement not covered" >    :class="{ 'site-sidebar--fold': sidebarFold }"</span>
    v-loading.fullscreen.lock="loading"
    element-loading-text="拼命加载中"&gt;
    &lt;template v-if="!loading"&gt;
      &lt;main-navbar<span class="cstat-no" title="statement not covered" > /&gt;</span>
      &lt;main-sidebar /&gt;
      &lt;div class="s<span class="cstat-no" title="statement not covered" >ite-content__wrapper" :style="{ 'min</span>-height': documentClientHeight + 'px' }"&gt;
        &lt;main-content /&gt;
      &lt;/div&gt;<span class="cstat-no" title="statement not covered" ></span>
    &lt;/template&gt;
  &lt;/div&gt;<span class="cstat-no" title="statement not covered" ></span>
&lt;/template&gt;
<span class="cstat-no" title="statement not covered" ></span>
&lt;script&gt;
  import MainNavbar <span class="cstat-no" title="statement not covered" >from './main-navbar'</span>
  import MainSidebar from './main-sidebar'
  import <span class="fstat-no" title="function not covered" >MainContent from './mai</span>n-conte<span class="cstat-no" title="statement not covered" >nt'</span>
  export default {
<span class="cstat-no" title="statement not covered" >    data () {</span>
      return {<span class="fstat-no" title="function not covered" ></span>
<span class="cstat-no" title="statement not covered" >        loading: true</span>
      }
    },
    components: {
      MainNavbar,
      MainSidebar,
      MainContent
    },
    computed: {
      documentClientHeight: {
        get () { return this.$store.state.common.documentClientHeight },
        set (val) { this.$store.commit('common/updateDocumentClientHeight', val) }
      },<span class="fstat-no" title="function not covered" ></span>
      si<span class="cstat-no" title="statement not covered" >debarFold: {</span>
        get () { return this.$store.state.common.sidebarFold }
      },<span class="fstat-no" title="function not covered" ></span>
      us<span class="cstat-no" title="statement not covered" >erId: {</span>
        get () { return this.$store.state.user.id },
        set (val) { this.$store.commit('user/updateId', val) }
      },
      userName: {<span class="fstat-no" title="function not covered" ></span>
<span class="cstat-no" title="statement not covered" >        get () { return this.$store.state.user.name }</span>,
        set (val) { this.$store.commit('user/updateName', val) }
      }
    },
    created () {<span class="fstat-no" title="function not covered" ></span>
      th<span class="cstat-no" title="statement not covered" >is.getUserInfo()</span>
    },
    mounted () {<span class="fstat-no" title="function not covered" ></span>
      th<span class="cstat-no" title="statement not covered" >is.resetDocumentClientHeight()</span>
    },
    methods: {
      // 重置窗口可视高度
      resetDocumentC<span class="fstat-no" title="function not covered" >lien</span>tHeight () {
<span class="cstat-no" title="statement not covered" >        this.documentClientHeight = document</span>.documentElement['clientHeight']
        window.onresize = () =&gt; {
          this.docum<span class="fstat-no" title="function not covered" >entC</span>lientHeight = document.documentElement['clientHeight']
<span class="cstat-no" title="statement not covered" >        }</span>
      },
      // 获取当前管理员信息
      getUserInfo () {
        this.$http({<span class="fstat-no" title="function not covered" ></span>
<span class="cstat-no" title="statement not covered" >          url: this.$htt</span>p.adornUrl('/sys/user/info'),
          method: 'get',
          params: th<span class="fstat-no" title="function not covered" >is.$http</span>.adornParams()
<span class="cstat-no" title="statement not covered" >        }).then(({data}) =&gt; {</span>
          if (data &amp;&amp; data.code === 0) {
            this.loading = false
            this.userId = data.user.userId
            this.userName = data.user.username
          }<span class="fstat-no" title="function not covered" ></span>
        })<span class="cstat-no" title="statement not covered" ></span>
      }
    }<span class="cstat-no" title="statement not covered" ></span>
  }<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" ></span></span>
&lt;/script<span class="cstat-no" title="statement not covered" >&gt;</span>
&nbsp;</pre></td></tr>
</table></pre>
<div class='push'></div><!-- for sticky footer -->
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
  Code coverage
  generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Thu Sep 20 2018 10:14:21 GMT+0800 (中国标准时间)
</div>
</div>
<script src="..\..\prettify.js"></script>
<script>
window.onload = function () {
        if (typeof prettyPrint === 'function') {
            prettyPrint();
        }
};
</script>
<script src="..\..\sorter.js"></script>
</body>
</html>
